package com.xxgc.eow.mapper;

import com.xxgc.eow.entity.CollectCommentSecondary;
import com.xxgc.eow.entity.CollectSecondaryCommentSeconday;
import com.xxgc.eow.entity.Collectsecondarycomment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xxgc.eow.entity.Likecomment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 收藏的二级评论表 Mapper 接口
 * </p>
 *
 * @author Mr.Abel
 * @since 2023-05-24
 */
@Mapper
public interface CollectsecondarycommentMapper extends BaseMapper<Collectsecondarycomment> {

    List<Collectsecondarycomment> selectAllByUserId(Integer userId);

    int insertLikeComment(CollectSecondaryCommentSeconday collectSecondaryCommentSeconday);

    Integer getLikeNumByCommentId(int secondaryCommentId);

    int updateCommentLike(@Param("secondaryCommentId") int secondaryCommentId, @Param("collectNum") int collectNum);

    int delLikeComment(CollectSecondaryCommentSeconday collectSecondaryCommentSeconday);

    CollectSecondaryCommentSeconday selectDataTf(CollectSecondaryCommentSeconday collectSecondaryCommentSeconday);

    List<CollectSecondaryCommentSeconday> selectAll();
}
